Mazey utility playground

Interactive utility examples

Calculate date and time interval

Calculate the interval from the start date and time to the end date and time using getDateDifference.

Interval
0 seconds

Calculate an investment CAGR

Annualize a complete-period return using calculateCAGR and a fixed 365-day year.

Enter a percentage value such as 20.2%, 20.2, or -15.5%.
Formatted CAGR

Decimal CAGR

Format a duration

Convert milliseconds into a concise readable duration using formatDurationFromMs.

Example: 90000 becomes 1.5 minutes.
Formatted duration
1.5 minutes

Continue exploring Mazey

These examples cover universal utilities that are safe to call in a browser. Other Mazey APIs interact with the DOM, storage, cookies, resource loading, browser detection, and performance APIs; review their runtime requirements before use.