How is the length of labour calculated?

Is it from early 1st phase or active 1st phase?

Does it finish at birth or delivery or placenta?