Sample calculator for iPhone