changed r, and d parameter names to zero_rate and carry_cost