Shared earnings model
- Used a common calculateWorkEarnings entry point for workday progress, remaining time and earnings estimates.
- Based monthly calculations on scheduled hours in the current calendar month, with support for configured pay cycles.
Developer
A workday progress and estimated-earnings dashboard, with a VS Code extension using the same schedule and salary calculations.
A workday tracker needs to translate schedules and different pay periods into understandable progress and earnings estimates.
Showing the same information in a browser and an editor can produce inconsistent figures if each interface maintains its own calculation rules.
Keep schedule and salary calculations in shared TypeScript helpers, then present their output through a Next.js dashboard and a VS Code extension.
Keep the interface quiet and preferences local, with earnings presented as estimates rather than payroll records.
Built a browser dashboard and VS Code extension that share schedule and earnings logic. The website and source repository are available through the project links.