Simple utility to calculate how much time you have left to record today.
The start time & duration are kept in browser storage. The recorded duration is also kept but cleared every day.
Inputs:
- Start Time
- Target Duration
- Break Duration
- Break Taken Yes/No
- Recorded Duration
Output:
- Remaining Duration
Calculation:
Remaining = Now - Start - Break (if taken) - Recorded
-
npm run dev
- Starts a dev server at http://localhost:5173/ -
npm run build
- Builds for production, emitting todist/
-
npm run preview
- Starts a server at http://localhost:4173/ to test production build locally