

Paternity Pay Calculator
Welcome to Ivy Jane HR Services' Paternity Pay Calculator — a simple and efficient tool designed to help employers estimate Statutory Paternity Pay (SPP) for their employees. This calculator makes it easy to work out entitlement based on average weekly earnings and leave duration, ensuring accuracy and compliance with current statutory rates. Use it to support your HR planning and payroll processes with confidence.
___
CALENDAR LOGIC:
The code estimates Statutory Paternity Pay (SPP) based on the user's average weekly earnings and the number of weeks they plan to take leave. It follows these steps:
-
Input Values:
-
Earnings: The user enters their average weekly earnings.
-
Leave Length: The user specifies how many weeks of paternity leave they want to take.
-
-
Validation:
-
The code checks if the inputs are valid numbers and that earnings are greater than zero.
-
-
Weekly Pay Calculation:
-
The statutory paternity pay is calculated as 90% of the user’s weekly earnings, capped at £184.03 per week (the statutory rate).
-
This is done using:
weeklyPay = Math.min(earnings * 0.9, 184.03)
-
-
Total Pay Calculation:
-
The total pay is calculated by multiplying the weekly pay by the number of weeks of leave:
totalPay = weeklyPay * leaveLength
-
-
Result Display:
-
The estimated total SPP is shown to the user, rounded to two decimal places.
-
