Bookmark this: tool.io/take-home-pay-calculator/nz/source-code
New Zealand Take-Home Pay Calculator Source Code
Browse the implementation files for New Zealand Take-Home Pay Calculator.tool.ts typescript
import TakeHomePayCalculator from '../TakeHomePayCalculator.svelte';
import { createTakeHomePayPreview } from '../preview';
import { calculateNewZealandTakeHomePay } from './calculate';
export { calculateNewZealandTakeHomePay };
export const Tool: TypeTool = {
name: 'New Zealand Take-Home Pay Calculator',
slug: 'take-home-pay-calculator/nz',
intro:
'Estimate New Zealand take-home pay after PAYE, the ACC earners’ levy, and selected deductions.',
tool: calculateNewZealandTakeHomePay,
i: [],
o: [
{
label: 'Take-home pay',
placeholder: 'Estimated take-home pay',
render: 'custom',
renderas: TakeHomePayCalculator,
type: 'text'
}
],
takeHomePay: {
advancedFields: [
{
key: 'kiwiSaverRate',
label: 'KiwiSaver contribution',
options: [
{ text: 'None', value: '0' },
{ text: '3.5%', value: '3.5' },
{ text: '4%', value: '4' },
{ text: '6%', value: '6' },
{ text: '8%', value: '8' },
{ text: '10%', value: '10' }
],
type: 'select',
value: '0'
},
{
key: 'studentLoan',
label: 'Student loan',
options: [
{ text: 'No', value: 'no' },
{ text: 'Yes', value: 'yes' }
],
type: 'select',
value: 'no'
}
],
assumptions: [
'2026–27',
'Auckland',
'New Zealand tax resident',
'Primary M tax code',
'No KiwiSaver',
'No student loan'
],
country: 'New Zealand',
countryCode: 'nz',
currency: 'NZD',
locale: 'en-NZ',
locations: [{ text: 'Auckland', value: 'auckland' }],
periods: [
{ text: 'Yearly', value: 'yearly', selected: true },
{ text: 'Monthly', value: 'monthly' },
{ text: 'Fortnightly', value: 'biweekly' },
{ text: 'Weekly', value: 'weekly' }
],
summaryPeriods: [
{ text: 'Yearly pay', value: 'yearly' },
{ text: 'Fortnightly pay', value: 'biweekly' }
]
},
cite: [
{
title: 'New Zealand PAYE tax rates',
url: 'https://www.ird.govt.nz/income-tax/income-tax-for-individuals/tax-codes-and-tax-rates-for-individuals/about-tax-codes'
},
{
title: 'ACC earners’ levy rates',
url: 'https://www.ird.govt.nz/income-tax/income-tax-for-individuals/acc-clients-and-carers/acc-earners-levy-rates'
},
{
title: 'KiwiSaver employee contributions',
url: 'https://www.ird.govt.nz/kiwisaver/kiwisaver-individuals/growing-my-kiwisaver-account/employee-contributions-to-kiwisaver'
}
]
};
Tool.preview = createTakeHomePayPreview(Tool);
export default Tool;
Description
Browse the implementation files for New Zealand Take-Home Pay Calculator.