add food functions to calculations.js

Signed-off-by: albertluk <aluk@uci.edu>