Update flowmeter.py

added calorie logic method