Yukari maintains the boarder, but I can't remember if there were calculations involved. I've seen posts about it in the past, but I can't remember them.
What kind of stuff would Yukari be calculating anyway if anyone can just wander in? There's also Reimu. Why would she need to guard the barrier if she can just send people back to the outside world of their choosing?