As you said, the battery capacity of 40v10AH also depends on the motor size. If it's a 350 watt motor, it will do about 40 to 50 kilometers. If it's 240 or 280 watts, it will be about 50 to 58 kilometers. Of course, this also depends on your driving conditions and your environment. If you are driving in congested city traffic, you often have to brake and start, which uses less energy.
That's basically it