Help with calorie deficit

Hi

've just started tracking my macros again after a bit of time off and am a little confused with the calorie deficit on my diary. I'm close to hitting my cals and macros but on further inspection I'm actually in a big calorie deficit. I thought that hitting my macros and 1840cal per day was my target. I did a 10 mile run yesterday and it put me in a 1393cal deficit even though my deficit was already calculated into my calories on the ketogains calculator. If I was to consume that many more calories surely it would mess up my macros?

Cheers