{"calculator":{"slug":"relay-split-calculator","math":{"href":"https://www.tracktoolspro.com/api/calculators/relay-split-calculator","jsonPointer":"/calculator/math","version":"2026-10-21.1","implementationVersion":"b5a8aca7b85361476e0321a08b7fa5f516fc9535","scope":"Canonical HTTP function and documented corresponding mounted-form math. This is public inspectable documentation, not access control or independent empirical validation.","unitNotation":"Input paths use [] and *; output paths are JSON Pointers with * (one segment) and ** (descendants). Empty output path denotes scalar result. Units apply to numeric quantities or explicitly described numeric strings; labels/statuses/booleans are dimensionless. More specific units, including count/index exceptions, override broad patterns.","interfaceNotes":["HTTP input is described by the adjacent inputSchema. The original handlers may accept numeric strings; this metadata adds no validation.","Mounted forms accept displayed clock/unit strings and enforce their own limits. Mounted tools limit strings to 200 characters and numeric parts to magnitude 1000000. Do not assume mounted/API input interchangeability.","Some legacy extreme/invalid tuples can produce null/empty results or nonfinite numbers serialized as null. Those are unavailable answers, not exact numerical predictions. Per-calculator domain describes the intended mathematical inputs."],"kind":"heuristic","implementationFiles":["lib/formulas/relay-splits.ts"],"equations":["Goal mode: flying=(goalSeconds-leadoffOffset)/4; leadoff=flying+leadoffOffset; legs2..4=flying; cumulative=sum preceding targets.","If nonempty legSeconds is supplied, sum exactly 4 positive leg times instead; this takes precedence over goalSeconds."],"inputUnits":{"event":"enum/string (dimensionless)","goalSeconds":"s","legSeconds[]":"s"},"outputUnits":{"/totalSeconds":"s","/leadoffOffsetSeconds":"s","/legs/*/leg":"dimensionless index/count","/legs/*/targetTime":"s","/legs/*/cumulativeTime":"s"},"domain":["Known 4-leg event; goal>event offset or exactly 4 positive finite splits. Invalid tuples produce API errors."],"rounding":["Raw IEEE-754 numbers; the mounted page formats clocks separately."],"assumptions":["Uses the entered values and the selected convention; this documentation does not strengthen existing validation."],"limitations":["Offsets are coaching conventions, not measured exchange savings. Arithmetic totals are exact within floating-point precision, but equal flying legs do not select an actual relay team."],"mountedPageNotes":[],"workedExamples":[{"input":{"event":"4x400","goalSeconds":200},"expected":{"/legs/0/targetTime":50.75,"/legs/3/cumulativeTime":200},"absoluteTolerance":1e-8,"note":"Illustrative canonical-handler result; not independent validation of an empirical model."}],"constantsAndTables":{"events":{"4x100":{"label":"4x100m","legMeters":100,"totalMeters":400,"leadoffOffset":0.5},"4x200":{"label":"4x200m","legMeters":200,"totalMeters":800,"leadoffOffset":0.8},"4x400":{"label":"4x400m","legMeters":400,"totalMeters":1600,"leadoffOffset":1},"4x800":{"label":"4x800m","legMeters":800,"totalMeters":3200,"leadoffOffset":1}}},"sources":[{"title":"Canonical HTTP binding at the documented implementation revision","url":"https://github.com/wickthumb/track_tools_pro_marketing/blob/b5a8aca7b85361476e0321a08b7fa5f516fc9535/lib/calculator-functions.ts","note":"Existing calculation handler; math metadata is additive."},{"title":"lib/formulas/relay-splits.ts","url":"https://github.com/wickthumb/track_tools_pro_marketing/blob/b5a8aca7b85361476e0321a08b7fa5f516fc9535/lib/formulas/relay-splits.ts","note":"Primary implementation source for these equations/tables, not a claim of scientific calibration."}]},"annotations":{"readOnlyHint":true,"consequentialHint":false},"name":"Relay Split Calculator","description":"This relay split calculator turns a team goal time into per-leg targets for the 4x100, 4x200, 4x400, and 4x800. The leadoff leg is modeled slower than the flying legs because leg 1 starts from blocks or a standing start while legs 2–4 receive the baton at speed. It also works in reverse as a 4x4 time calculator: enter four leg splits and get the team total. Every result shows the cumulative time at each exchange — the number a coach actually reads off the stopwatch.","category":"Pace & Time","method":"POST","endpoint":"/api/calculators/relay-split-calculator","page":"/calculators/relay-split-calculator","inputSchema":{"type":"object","required":["event"],"properties":{"event":{"type":"string","description":"Relay event.","enum":["4x100","4x200","4x400","4x800"],"default":"4x400"},"goalSeconds":{"type":"number","description":"Team goal time in seconds (goal-to-splits mode).","minimum":0},"legSeconds":{"type":"array","description":"Four leg splits in seconds, leadoff first (legs-to-total mode).","items":{"type":"number","description":"Leg split in seconds.","minimum":0}}}},"example":{"event":"4x400","goalSeconds":200}}}