calc works on main page