PhoneGap calculator