Liquid calculator