Correction to cost calculator.