added method to calculate optimal distance a plane needs to pass with
its unit test, also used this to calculate optimal time a plane needs
for its flight - not sure if (optimal distance/ speed) is correct
thought. Will add timer later and observe and add a constant multiplier
if necessary.