Get interval from subscription plan <= how?

I understand that a subscription can only contain plans of the same interval. How do I fetch this interval?

Already tried

cur_frm.doc.plans[0]

but could not find it in there. Where might it be?

Cheers,
kombi

ps: Why do I want to know? I am trying code a “performance period” for autogenerated invoices.