You can use websites like bike calc to punch in variety of gear ratios and wheel tyre sizes.
The speeds I quoted to you were from literally riding my sisters bike after I converted it to electric assist.
The gearing wasnt altered, it was what was on the chain ring of the motor 42t , and the original 7 speed cassette on the Raleigh folding bike.
This gave plenty of low gears for climbing steep hills and top speed pedalling in the flat at 15mph. I found the stability and overall folding bike geometry a bit sketchy when freewheeling downhill above 25 mph. So there is no need to have a folding bike capable of going that fast on the flats.
Does your folding bike have a rear rack already fitted?
I sent you a private message. If you like to continue the conversation I could assist