When it's "cast" IS when it's "prepared." The actual wording for Rituals is "Charged" and "Discharged." So you "Charge" (i.e. cast) a ritual, the effect sort of sits in storage, and then, at the Opportune MomentTM Jack Sparrow, you "Discharge" the ritual, and the actual effect goes off, duration begins, etc...