Fee calculation issues for Max

you can check on it