Up to what age can a child bathe with a parent of the opposite sex?

Children up to the age of 6 can bathe together. However, Tokyo and Shinjuku Ward ordinances state that boys and girls over the age of 7 cannot bathe together.