# calculateSalaryTax

Source: https://pakdatakit.dev/api/typescript/incometax/functions/calculatesalarytax/

```ts
function calculateSalaryTax(annualIncome, options?): SalaryTax | null;
```

Defined in: [incometax.ts:151](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/incometax.ts#L151)

Income tax on a salaried individual's taxable income for a tax year, from
the salaried rate table (see [getSalaryTaxSlabs](https://pakdatakit.dev/api/typescript/incometax/functions/getsalarytaxslabs/)).

The rate table only: the surcharge, tax credits, exemptions, the separate
pension rate and withholding adjustments are not applied.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `annualIncome` | `number` | Taxable income for the year in rupees, 0 to 1 trillion (at most 2 decimals count) |
| `options?` | [`SalaryTaxOptions`](https://pakdatakit.dev/api/typescript/incometax/interfaces/salarytaxoptions/) | - |

## Returns

[`SalaryTax`](https://pakdatakit.dev/api/typescript/incometax/interfaces/salarytax/) \| `null`

The tax, or `null` for an invalid amount or a tax year that is
  not covered. Never throws.

## Example

```ts
calculateSalaryTax(1_800_000, { taxYear: 2026 });
// { tax: 72000, monthly: 6000, effectiveRate: 4, slab: { over: 1200000, … }, taxYear: 2026 }
```
