Update calculatecost.h