fix duration compute error
clear code
Merge pull request #2 from sunivengg/master

Merge pull request #1 from sunivengg/get_transition_duration_function
Merge pull request #3 from sunivengg/get_transition_duration_function

Get transition duration function