Welcome to the Forum.how calculate autonomy time (back up time) for 4 Bat 12V170Ah load (24V,50A).
Yes 4 Bats: 1st series set (1+2) parallel with 2nd series set (3 +4) to get 24VWelcome to the Forum.
Since your load appears to be 24 volts, I assume yo have two batteries in series. Please confirm.
If they are in series, you can add the voltage but you cannot add the amp-hour capacity. Therefore, your time would be 50 amps divided by 170 AmpHour = 3.4 hours nominal.
I say nominal because the battery voltage would be falling over this time and, depending on your load, the current may also be falling (because of the falling voltage) and cause the battery to last longer.
Good luck.