A PhoneGap calculator