Python - Declining Balance Method (Depreciation Rate)
by matt392 in Circuits > Software
43 Views, 1 Favorites, 0 Comments
Python - Declining Balance Method (Depreciation Rate)

print ("Calculating Declining Balance Method (depreciation rate)") # nth root of "x" | x**(1/n) | Square root of 4: 4**(1/2) # DecliningBalanceMethod = (1-((ResidualValue/CostFixedAsset)**(1/LifeAsset))) EnteredResidualValue = input ("Enter the Residual Value: ") EnteredCostFixedAsset = input ("Enter the Cost of the Fixed Asset: ") EnteredLifeOfAsset = input ("Enter the estimated Life of Asset in years: ") # Convert entered numbers to float ResidualValue = float(EnteredResidualValue) CostFixedAsset = float(EnteredCostFixedAsset) LifeOfAsset = float(EnteredLifeOfAsset) DecliningBalanceMethod = (1-((ResidualValue/CostFixedAsset)**(1/LifeOfAsset))) print ("The Calculating Declining Balance Method (depreciation rate) is: ", DecliningBalanceMethod) print ("Thank you to fxsolver.com for assistance with this equation.")