Milking should ideally be done twice a day, in the early morning and late afternoon, to maintain a consistent routine and maximize milk production.