You're gonna Love this
Code:
Deprectiation = SLN(Cost, Salvage, Life)

I have no Idea what that means, I don't know much about Finance, but if you search your object browser for Finance you'll find an in build module with loads ob basic economic functions