added calc function to routes fremoved from app.js