Absolute worst-case range is simple: Battery capacity in Watt-hours divided by 250W multiplied by 25km. That's not allowing for the effects of 'sag', or the motor not being able to achieve full speed up bastard hills, but it'a also not allowing for the fact that you won't need anything like 250W to do 25kph most of the time, especially if the rider is contributing some effort.
Anything else is suck-it-and see, as it'll depend on all the usual things that affect cycling efficiency: mass, gravity, wind, tyres, aerodynamics etc. Not to mention the real-world performance of the battery, especially when it's cold[1].
E-bike manufacturers know a lot about the performance of their electric-assist system, but not about how you're using the bike, they can only apply a fudge-factor. And it's not like WLTP range in cars, which everyone knows is unrealistic, but is at least consistent across manufacturers. It's more like those ASA-mandated 'average' broadband speeds, which are effectively meaningless.
[1] I expect there's a 'bikes are sports equipment and only ever ridden in decent weather' factor here.