finished cost calculation