Skip to content

Instantly share code, notes, and snippets.

@moorbrook
Created July 29, 2009 07:10
Show Gist options
  • Save moorbrook/157909 to your computer and use it in GitHub Desktop.
Save moorbrook/157909 to your computer and use it in GitHub Desktop.
section_179 = case 1) equip_cost if equip_cost < 250,000
case 2) 250,000 if equip_cost > 250,000 and equip_cost >= 800,000
case 3) 250,000 - (equip_cost - 800,000) if equip_cost > 800,000 and equip_cost < 1050,000
case 4) 0 if equip_cost >= 1050,000
bonus_50%_depreciation = (equip_cost - section_179) * 0.5
regular_depreciation = (equip_cost - section_179 - bonus_50%_depreciation) * 1/7
total_first_year_depreciation = section_179 + bonus_50%_depreciation + regular_depreciation
tax_saving = total_first_year_depreciation * tax_bracket
lowered_cost_of_equipment_after_savings = equip_cost - tax_saving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment