Format duration on textfield blur (osx)