Cost is calculated properly.