calculate the cost saved in applcaition controller