Modify panelAnimateDuration

I was issued a calculatedDuration method in the header