Code performs cost calculation