public static IEnumerable<StampDutyBand> CalculateResidentialSecondHome(double price) { var secondhomeBands = new StampDutyBand[5]{ new StampDutyBand() { MinValue = 0.0, MaxValue = 125000.0, Percentage = 0.03 }, new StampDutyBand() { MinValue = 125000.0, MaxValue = 250000, Percentage = 0.05 }, new StampDutyBand() { MinValue = 250000.0, MaxValue = 925000.0, Percentage = 0.08 }, new StampDutyBand() { MinValue = 925000.0, MaxValue = 1500000.0, Percentage = 0.13 }, new StampDutyBand() { MinValue = 1500000.0, MaxValue = double.MaxValue, Percentage = 0.15 }}; return CalculateTax(price,secondhomeBands); }
public static IEnumerable<StampDutyBand> CalculateNonResidentialProperty(double price) { var nonresidentialBands = new StampDutyBand[3]{ new StampDutyBand() {MinValue = 0.0, MaxValue = 150000.0, Percentage=0.0 }, new StampDutyBand() {MinValue = 150000.0, MaxValue = 250000, Percentage=0.02 }, new StampDutyBand() {MinValue = 250000.0, MaxValue = double.MaxValue, Percentage=0.05 } }; return CalculateTax(price,nonresidentialBands); }
public static IEnumerable<StampDutyBand> CalculateResidentialHome(double price) { var firsthomeBands = new StampDutyBand[5]{ new StampDutyBand() {MinValue = 0.0, MaxValue = 125000.0, Percentage=0.0 }, new StampDutyBand() {MinValue = 125000.0, MaxValue = 250000, Percentage=0.02 }, new StampDutyBand() {MinValue = 250000.0, MaxValue = 925000.0, Percentage=0.05 }, new StampDutyBand() {MinValue = 925000.0, MaxValue = 1500000.0, Percentage=0.10 }, new StampDutyBand() {MinValue = 1500000.0, MaxValue = double.MaxValue, Percentage=0.12 }}; return CalculateTax(price,firsthomeBands); }