Finished fare calculator function