A factory operates a machine that produces 100 widgets per hour. The factory has an order to produce 5000 widgets. Initially, it was estimated that the machine would run continuously to complete the order in 50 hours. However, due to an upgrade, the machine’s production rate increased by 25%. How many hours earlier than planned did the machine complete the order? Let's think step by step and output the final answer within \boxed{}.
user