Cost controller