simple calculator for both portrait and landscape orientation