Use 10-gauge at 50 feet, 8-gauge at 100 feet.
Go with 10-gauge for 50 feet and 8-gauge for 100 feet. I know the math says 12-gauge at 50 feet is fine for 15 amps, but table saws are not gentle loads. Startup surge can easily pull double that, and a long undersized cord means voltage drop, which kills torque and overheats the motor.
At 100 feet, 10-gauge is borderline. You’ll get noticeable voltage drop under load. 8-gauge keeps the saw happy and your breaker from tripping randomly. Also, if the cord runs in the sun or gets coiled up, heat builds fast.
Don’t trust the “15-amp rating” on a cheap 14-gauge extension cord. That rating assumes a light load and short length. For a saw, go one size up from what the chart says.
Your saw will thank you by not catching fire.