accessed calc functions from app.js