Description
Multiply duration by source factor and divide by target factor.
Personal health logs distinguish clock coordinates, elapsed durations, pauses, and missing time metadata. A supplied time comparison organizes records without measuring an activity or assessing its health effects.
Multiply duration by source factor and divide by target factor.
When to use this tool
Use Activity Duration Unit Factor when you need one explicit diary-duration or clock-accounting component.
How to use the tool and how it works
- Enter duration, sourceSecondsPerUnit, targetSecondsPerUnit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read convertedDuration. Use the output convention below.
Require nonnegative duration and positive sourceSecondsPerUnit and targetSecondsPerUnit. Multiply duration by source factor and divide by target factor.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| duration | Duration | Required. Finite number; minimum 0. |
| sourceSecondsPerUnit | Source Seconds Per Unit | Required. Finite number; strictly above 0. |
| targetSecondsPerUnit | Target Seconds Per Unit | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| convertedDuration | Converted Duration | Required. Finite number. |
{
"input": {
"duration": 120,
"sourceSecondsPerUnit": 1,
"targetSecondsPerUnit": 60
},
"output": {
"convertedDuration": 2
}
} Limitations and assumptions
- Factors are seconds per respective unit and must be supplied consistently; no calendar-month interpretation, unit registry lookup, or clinical recommendation is performed.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Retain dates and offset information and consult an appropriate professional for questions about health, care, or suitable activity.
References
Similar or alternative tools
- FHIR Timing Repeat Period Unit Pair
Convert fixed units to seconds, or months/years to calendarMonths with seconds zero and fixedDuration false.
- Sleep Entry Clock Reference Pair
Return localEnd-localStart, endOffset-startOffset, and local duration minus offset change as elapsedMinutes.