WPS Spreadsheet: Convert Decimal Duration to Time and Add It
Question details
The user needs to calculate an event completion time by converting a quantity divided by an hourly rate into a time duration and adding it to a starting time.
- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- A starting time, total quantity, and hourly rate are available, and the user wants to calculate when the event will finish.
- Observed behavior
- The result must be converted from decimal hours into WPS Spreadsheet's fraction-of-a-day time format before it can be added to the starting time.
Enter the starting time, total quantity, and hourly rate in separate cells, and confirm that the quantity and rate use matching units. Set the result cell to a time format after entering the formula.
Convert decimal hours and add them to the starting time
Use this formula when the duration is calculated by dividing a quantity by an hourly rate.
WPS Spreadsheet stores time as a fraction of a 24-hour day. Divide the decimal-hour result by 24 before adding it to the starting time. For example, 10,000 liters at 5,600 liters per hour takes approximately 1 hour and 47 minutes.
In cell A2, enter the starting time. In B2, enter the total quantity, such as 10000 liters, and in C2, enter the hourly rate, such as 5600 liters per hour.
Select cell D2 and enter =IFERROR(A2+B2/C2/24,"") , then press Enter. The /24 converts decimal hours into WPS Spreadsheet's time-value system.
Select D2, open the Home tab, choose the Number Format menu, and select a Time format such as 1:30 PM or a custom h:mm format.

Calculate completion times with decimal-hour formulas in WPS Spreadsheet
WPS Spreadsheet lets you calculate a duration from quantity and hourly rate, convert decimal hours into a time value, and add that duration to a starting time using a familiar spreadsheet formula.
- 1. Open WPS Spreadsheet: Launch WPS Office and select Spreadsheet from the home screen.
- 2. Build the calculation table: Enter the starting time in A2, quantity in B2, and hourly rate in C2.
- 3. Add the formula: Select D2 and enter =IFERROR(A2+B2/C2/24,"") to calculate the completion time.
- 4. Apply time formatting: Use Home > Number Format and choose a Time format for cell D2.

Frequently Asked Questions
Why must the decimal-hour result be divided by 24?
WPS Spreadsheet stores one full day as 1, so one hour is 1/24 of a day. Dividing B2 by C2 by 24 converts the duration from decimal hours into a value that can be added to a time.
What formula adds the calculated duration to a starting time?
If the starting time is in A2, the quantity is in B2, and the hourly rate is in C2, enter =IFERROR(A2+B2/C2/24,"") in D2.
How do I show the result as hours and minutes?
Select the result cell, open Home > Number Format, and choose a Time option. You can also apply a custom format such as h:mm or [h]:mm when durations may exceed 24 hours.
What happens if the hourly rate is zero or blank?
The IFERROR function returns a blank result instead of displaying a division error. Once a valid rate is entered in C2, WPS Spreadsheet recalculates the completion time.
Can this calculation be used in Microsoft Excel files?
Yes. WPS Spreadsheet supports common Excel formulas and can open and save XLSX workbooks, so this calculation can be used in compatible Excel files.




