defined calculator