trip calculator homework