changed cost formula