Start of the cost calc api