Formula Errors

Calculate Billing Rates from Hours Worked in Excel

Aamir Naveed AkramAamir Naveed Akram Nov 18, 2026 869 views

Question details

Calculate a billing amount from hours worked, an hourly rate, and an accurate lunch deduction.

Calculate Billing Rates from Hours Worked in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A timesheet records start and end times and needs to calculate billable time and charges.
Observed behavior
Elapsed time should be converted to hours before it is multiplied by the hourly rate, with lunch deducted when applicable.
Before you start

Enter valid Excel times in A2 and B2 and the numeric hourly rate in C2. The examples assume a same-day shift with an end time later than the start time; the fixed-lunch formula also assumes the shift is at least 30 minutes long.

Solution 1Recommended

Calculate the billing amount with a fixed lunch deduction

Use this formula when every shift includes a 30-minute unpaid lunch.

Excel stores time as a fraction of a 24-hour day. Multiplying the elapsed time by 24 converts it to hours before applying the hourly rate.

1
Enter the shift and rate

Enter the start time in A2, the end time in B2, and the hourly rate in C2.

2
Calculate the charge

In D2, enter =(B2-A2-TIME(0,30,0))*24*C2. TIME(0,30,0) deducts exactly 30 minutes.

3
Format the amount

Select D2 and use Home > Number to apply Currency or Accounting format. Drag the fill handle down to calculate other rows.

Calculate the billing amount with a fixed lunch deduction
Calculate billable hours

Calculate timesheet charges in WPS Spreadsheets

Use time and arithmetic formulas in WPS Spreadsheets to deduct lunch, convert work time to hours, and calculate the charge.

  1. 1. Open the timesheet: Open WPS Spreadsheets and use Open to select your Excel timesheet, or create a blank spreadsheet.
  2. 2. Enter the shift data: Enter a same-day start time in A2, an end time in B2, and the hourly rate in C2.
  3. 3. Calculate the charge: Select D2 and enter =(B2-A2-TIME(0,30,0))*24*C2 to deduct a fixed 30-minute lunch and calculate the billing amount.
  4. 4. Format and save: Use Home > Number to format D2 as currency, then use File > Save As to save the workbook in XLSX format.
Calculate billable hours and deduct a precise 30-minute lunchOpen and save Microsoft Excel XLSX filesFormat charges as currency and total durations as hoursUse familiar spreadsheet formulas and controls
microsoft office alternative - wps office

Frequently Asked Questions

Why do I multiply elapsed time by 24 in Excel?

Excel represents one day as 1, so one hour is 1/24. Multiply the result of an end-time-minus-start-time calculation by 24 to get hours before multiplying by an hourly rate.

How can I show total work time greater than 24 hours?

Select the duration cell, open Format Cells > Number > Custom, and enter [h]:mm:ss. The bracketed hours display the total instead of resetting after 24 hours.

How do I calculate a charge without deducting lunch?

For a same-day shift with the start in A2, end in B2, and hourly rate in C2, enter =(B2-A2)*24*C2 in the charge cell.

Can I use these formulas for an overnight shift?

The examples assume a same-day shift. For a shift of less than 24 hours that crosses midnight, use MOD(B2-A2,1) for elapsed time, then apply any lunch deduction and multiply by 24 and the hourly rate.