# one of the first python scripts i made yipee from math import floor FRAME_RATE = 59.8261 TARGET_SEC = int(input("Target Seconds: ")) TARGET_DELAY = int(input("Target Delay: ")) CALIBRATED_DELAY = int(input("Calibrated Delay: ")) CALIBRATED_SECONDS = int(input("Calibrated Seconds: ")) ONE_MIN = 60000 MINIMUM_TIME_MS = 14000 PRETIMER = 5000 def toms(ms): return floor(ms / FRAME_RATE) secondTimer = (toms(TARGET_DELAY * 1000 - CALIBRATED_DELAY * 1000) + CALIBRATED_SECONDS * 1000) firstTimer = ((TARGET_SEC*1000 - secondTimer) % ONE_MIN + 200 ) secondTimer += 5000 firstTimer += 5000 if firstTimer < MINIMUM_TIME_MS: firstTimer = firstTimer + ONE_MIN minutesBefore = floor((firstTimer + secondTimer) / ONE_MIN) print(f'{secondTimer}/{firstTimer}/{PRETIMER}\nMinutes Before Target: {minutesBefore}')