JAL Mileage Bank oneworld rates are calculated by total distance, i.e. the total distance of all flight segments is summed up and then the corresponding distance rate is applied.