The valves don't open and shut at TDC. Plus the air speed of the air entering the chamber is not constant. Plus the air density changes with heat. And air leaks past the pistons. Its a very dynamic thing. But surely there would be a rule of thumb, considering compression ratio and camshafts used?