Name the time budget, put both durations in minutes and keep the denominator beside the result. The percentage expresses a duration ratio; it does not establish how much work was completed or how productive anyone was.

Convert part minutes to a declared total
The formula is percentage = part minutes ÷ total minutes × 100, with a positive total. For this original fictional workshop, the total is 45 minutes and planned practice is 20 minutes.
20 ÷ 45 × 100 = 44.444…%, displayed as 44.44% of the 45-minute workshop when rounding to two decimal places.
If the reference changes to an hour, the denominator becomes 60:
20 ÷ 60 × 100 = 33.333…%, displayed as 33.33% of one 60-minute hour.
The 20-minute duration did not change; the comparison did. Update the denominator, formula and result caption together. Do not leave “workshop” on a result calculated against an hour.
Calculator Academy's original tool description distinguishes hour-based and custom-total modes and gives the hour conversion and reverse formulas. This example uses original workshop inputs and checks the ratios independently; no source calculator controls were run or copied.
Reverse the calculation without changing the basis
To find minutes from a percentage, use minutes = percentage ÷ 100 × total minutes.
For 40% of a 45-minute workshop, the result is 40 ÷ 100 × 45 = 18 minutes. For 40% of an hour, it would be 24 minutes. A reverse view must therefore show the selected total as clearly as the forward view.
Keep forward inputs as part minutes and total minutes. An explicit hour choice can set the total to 60; a custom choice uses the supplied positive total. A percentage-to-minutes view uses a nonnegative percentage and that same visible total, rather than guessing it from the earlier answer.
Normalize units before entering them
If the plan describes 1.5 hours, convert it explicitly to 90 minutes. An original 30-minute activity then occupies 30 ÷ 90 × 100 = 33.333…%, displayed as 33.33% of the 90-minute budget.
The decimal-hour value 1.5 means one and a half hours. A notation such as 1:30 is not the decimal number 1.3; it needs a declared hours-and-minutes interpretation. The proposed main inputs accept minutes, so enter 90 after confirming the intended duration instead of expecting a colon notation to be parsed automatically.
Preserve precision and explain values above 100%
Keep the unrounded ratio for calculations and round only the displayed result. A displayed 33.33% is not exactly one third. Reverse that literal percentage against 60 minutes and you get 19.998 minutes, not exactly 20. Use the original inputs or full-precision value when checking the original calculation.
An activity lasting 75 minutes compared with a 60-minute reference gives 75 ÷ 60 × 100 = 125%. Label it as a duration exceeding the reference budget; do not clamp it to 100%. The reverse calculation, 125 ÷ 100 × 60, returns 75 minutes.
That 125% result is not a success score. These supplied durations provide no actual completion, attendance, payroll or learning-achievement evidence.
Give blank and invalid inputs their own states
Use these expectations when specifying the future calculator:
| Inputs | Expected treatment |
|---|---|
| Part 0; positive total | Valid 0% |
| Blank part or total | Required input missing; no numeric result |
| Negative part or percentage | Invalid for this nonnegative-duration task |
| Total 0 or negative | Invalid; a positive reference is required |
| Non-numeric or non-finite value | Invalid; request a valid finite number |
| Part exceeds total | Valid ratio above 100%, clearly labeled |
If an input becomes invalid, clear the old result rather than leave a previous percentage next to a new error. Announce the validation message and keep it associated with the relevant input. Reset should clear inputs and results to empty; it should not invent a zero-minute plan.
Use these cases to check the local HTML example's calculations and labels. Verify its mode changes, reset, keyboard operation and layout in the intended host.
Copy a declared-budget calculator brief
Prepare a self-contained minutes-to-percentage calculator specification.
Time-budget name and positive total in minutes: [enter]
Part duration in minutes or percentage for reverse mode: [enter]
Chosen basis: explicit 60-minute hour or custom total: [enter]
Display precision and required format: [enter]
Forward: part/total*100. Reverse: percentage/100*total. Keep the selected total,
units, formula and budget caption visible together. Accept finite nonnegative
part/percentage and finite positive total. Blank is missing, not zero. Reject
negative, non-numeric/non-finite or nonpositive-total inputs. Clear stale results
on invalid input and announce associated errors. Reset to empty inputs/results.
Retain calculation precision and round only the display. Permit ratios above
100% without clamping; explain that they exceed the reference duration.
Do not infer productivity, work completion or actual time-record evidence.
Use these original fixtures for later tests: 20/45 => 44.44%, 20/60 => 33.33%,
40% of 45 => 18 minutes, 75/60 => 125%, 125% of 60 => 75 minutes,
and 0 divided by a positive total => 0%.
Return the proposed tool and manual check list. No autosave, network calls,
imports or official timesheet replacement. Do not claim tests executed.
Check the 45-minute and 60-minute results side by side before using the ratio in a plan. NOS can save and display a prepared HTML conversion tool for that review once its inputs, calculations and reset behavior have been implemented and tested. Keep official time records in their required workflow, and carry the declared total with every percentage you report.