Can you explain how long cows should be milked?

Can you explain how long cows should be milked?