Question regarding Delivery trading

I wanted to know, If am buying the Share on Friday at the rate of 215 in delivery. Share will be sale on Monday at the the rate of 222. Same share will be buying on same day (Monday) at the rate of 230 in delivery option. what will happen , shall i get the profit or loss.

If you sell at 222 and Buy at 230 on the same day, it will be considered as MIS (Intraday transaction). Loss of 8 Rs.

Thanks for your valuable reply