Skip to content

Instantly share code, notes, and snippets.

@ryanheath
ryanheath / tax.cs
Created September 22, 2011 15:49 — forked from flq/tax.cs
the tax thingy
public decimal GetTaxes(decimal salary)
{
var taxBrackets = new[]
{
new {UpperLimit = 5070m, Taxation = 0.10m},
new {UpperLimit = 8660m, Taxation = 0.14m},
new {UpperLimit = 14070m, Taxation = 0.23m},
new {UpperLimit = 21240m, Taxation = 0.30m},
new {UpperLimit = 40230m, Taxation = 0.33m},
new {UpperLimit = decimal.MaxValue, Taxation = 0.45m},