It'll always fails. See  line 124: you check if duration equal 60. Therefore, duration is not equal 60 in this line.