added lua calculator function