Fixed cost calculation for non-full tanks
Updated version