Text this: A nonstandard optimal control problem arising in an economics application: for royalty payment with piecewise function