Added function to calculate cost
Now factoring in years in calculation, more sensible param order