You can
put this solution on YOUR website!We consider:

Marked Price-25%*Marked price= Rajan Purchased Price (RPP)
marked Priced(1-0.25)= RPP
Marked Price(0.75)=RPP
In theory, Purchased Price is 75% of Marked Price

Gain Percent= Marked Price-RPP
GP=Marked Price-Marked price(0.75)
GP=Marked Price (1-0.75)
GP=Marked Price(0.25)
In theory, Gain Percent is 25% -------------> his discount
thank you,
Jojo