Skip to content

Commit

Permalink
docs: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OozyGrub authored Oct 7, 2022
1 parent a81b54d commit 19d56dd
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,44 @@ Thai personal income tax utility functions.
### Background
Thai tax calculation has proven to be difficult. Instead of extensive words, it would be simpler as programming code.

### Usage
```ts

const thaiTax = new ThaiTax(2565)
.setIncome({
salary: 12 * 1_000_000,
bonus: 1_000_000,
other: 1_000_000,
})
.setGeneralInfo({
sso: 0,
houseInterest: 0,
socialEnterprise: 0,
shopDeeMeeKuen: 0,
})
.setFamily({
status: FamilyStatus.SINGLE,
noOfChildren: 1
})
.setInsurance({
life: 100_000,
health: 25_000,
})
.setFund({
ssf: 200_000,
rmf: 300_000,
})
.setDonation({
special: 1000,
})
.summarize();

/**
* { netIncome: 13208000, tax: 4137800 }
**/

```

### TO-DO
- [ ] recheck logic
- [ ] add Thai documentations (reference would be good)
Expand Down

0 comments on commit 19d56dd

Please sign in to comment.