Eating Help

I’m a full time Paramedic on the busiest ambulace in one of the biggest cities in the USA . I work 24 hrs on and 72 hrs off . When I’m at work I run about 18 calls a day , I don’t usually get to eat meals with the guy’s but I bring 4 pro bars and RTD’S to shift. I also try to eat everything solid I can get my hands on . When I’m off the 72 hrs I try to get about 5000 cals a day with 300 grams of protein . I do get a gallon of H20 a day , will this effect my gains not eating my normal amount of cals on day’s I work .