Hi, Morning everyone.
I am looking for some help from more experienced php coders.
I am trying to create a Stamp Duty Land Taxes script that will automatically calculate stamp duty on the sale of a house or flat.
The amount of stamp duty is worked out as follows
Nothing on the first £125,000 of the property price
2% on the next £125,000
5% on the next £675,000
10% on the next £575,000
12 on the rest above £1.5m
If we buy a property for £275,000 we will pay £3,750 of Stamp Duty on that property
Nothing paid on the first £125,000
£2,500 on the next £125,000
£1,250 on the remaining £25,000
I have tried using a switch case statement without success as I am struggling how to find / deduct the amount in each range of taxable sale price.
Any advice or pointers would be appreciated...