how to find the nearest minute in trigonometry