When does water retention from increasing your intake go away?

Hi everyone! I’m currently about to sit some huge exams and have decided to increase my caloric intake to have more mental energy to study and actually focus on my tests and stuff. I used to be in a 1k deficit (losing a kilo a week approximately) but now I’m sticking to eating 600 under my maintenance. The problem is ever since I increased how much I eat I’ve gained nearly 2 kilos. Maybe it’s constipation maybe it’s because I’ve started eating higher volume foods I don’t know but like… It’s been nearly two weeks and the scale’s only gone up. What is happening?? I’m bloated all the damn time and just wondering when my body will finally get used to the higher intake.

Thanks so so much :))