prize17-3, Exercise 2: Choruses at 140 bpm, with the spare time side = 180 bars, beats_per_bar = 12, 4 bpm = 140 chorus = bars * beats_per_bar * 60 / bpm fit = int(side // chorus) print("chorus:", round(chorus, 1), "s; fit:", fit, "; used:", round(fit * chorus, 1), "s; spare:", round(side - fit * chorus, 1), "s") Output (run and checked): chorus: 20.6 s; fit: 8 ; used: 164.6 s; spare: 15.4 s Why it works: a twelve-bar chorus at four beats per bar has 48 beats, and at 140 beats per minute each beat lasts 60/140 seconds. Floor division (//) counts whole choruses, and the remainder is the spare time. Care: the printed chorus length is rounded, so the "used" figure is computed from the unrounded number (8 x 20.571 = 164.6).