I find my workouts are unaffected or better in a fasted/fat burning state. I would aim for working out after 12hrs of fasting minimum. If it’s a crappy workout, then adjust and aim for closer to 16hrs fasted.
I work out in the evening, and my last meal is dinner if I’m fasting. So I’m usually around 18hrs fasted during the workout.