time calculator in reverse Polish notation