Something feels wrong about this calculated amount. Is the formula correct?