added basic formula calc