Sources tell TMZ the agreement includes the following:
-- For the first 2 months ... Charlie gets the twins every other weekend, from Saturday AM until Sunday PM.
-- The next 2 months Charlie gets the twins every other weekend ... Saturday AM until Monday AM.
-- The next phase ... as long as Charlie and Brooke remain drug and alcohol free -- Charlie gets the twins every other weekend ... from Saturday morning until Monday morning ... AND Wednesday AM until Thursday AM.
-- Both parents must submit to random drug testing 3 times a month.
-- Both parents must have their regular nannies with them at ALL times when they have the kids.
As for Charlie's goddesses -- they can't show public displays of affection toward the twins.
Charlie and Brooke can't be photographed around the kids with a romantic counterpart.
BTW, contrary to some reports, neither Charlie nor Brooke had to submit to psychological evaluation.