import math def goToBin(bin): if bin % 2 == 0: direction = "right" else: direction = "left" adjustedBin = math.floor(bin / 2) distance = adjustedBin * 18 time = 0.5 + 0.93 * adjustedBin