Fixed distance formula in FXHandler