Skip to content

Feat/payroll calculate endpoint#494

Merged
codeZe-us merged 24 commits into
SafeVault:devfrom
codewithzubair07:feat/payroll-calculate-endpoint
May 30, 2026
Merged

Feat/payroll calculate endpoint#494
codeZe-us merged 24 commits into
SafeVault:devfrom
codewithzubair07:feat/payroll-calculate-endpoint

Conversation

@codewithzubair07
Copy link
Copy Markdown

Closes #477

What I built

  • Created src/app/api/v1/payroll/calculate/route.ts — POST endpoint that accepts a list of employees and returns gross pay, deductions, and net pay
  • Created src/server/services/payroll.calculation.service.ts — pure calculation service with no DB writes

Approach

  • Salaried employees: annual salary divided by 26 pay periods
  • Hourly employees: regular + overtime (1.5x rate)
  • Deductions: federal tax (22%), state tax (5%), social security (6.2%), medicare (1.45%)
  • Returns per-employee breakdown plus aggregate totals

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@jannatfirdous07 is attempting to deploy a commit to the vestroll's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codeZe-us codeZe-us self-requested a review May 30, 2026 00:31
@codeZe-us codeZe-us merged commit 0eea3bc into SafeVault:dev May 30, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants