Tare function for precise measurements of refrigerant quantity