Updated Formula functions and their calculations