Minor change to calculate Timer register values