Will the beer be at 40° when you bottle or will the temperature be rising to room temperature as you are bottling? If the temperature will be rising you could be better off to let the temperature of the beer rise to ambient temperature and use the ambient temperature for calculating the amount...