Math for discount rate