I'm sure I will be corrected if I'm wrong...
I think that if you return the car with tank that is not full you get charged for enough gas to cover the miles that you drove at whatever inflated rate they charge for gas. It is not dependent on how much gas actually goes into the tank.