correct note duration calculation