Small fixes

1) IndexOutofBounds in Calculations getMiles
2) get parent result code to prevent setting to 0 in onActivityResult