How do you measure how much percent of the movie was directed by who?

What I mean is, the usual rule is whoever directs over half the movie gets the director credit. But how do you measure how much of the movie is half, when it comes to pre-production, production, and post production?

Do some areas have a larger percentage than others in terms of measuring it, or are different areas measured to what counts as over half exactly?