Loop through days -- more looping limitation

Loop through days -- more looping limitation

I need a workaround for Zoho's lack of conventional looping functionality.

I have a form that asks for a start and end date.  The success function will create a record in another form for each day from the start to the finish.  I cannot figure out how to make it loop through and do an insert for each day.  

If I could do a for-next type of loop, I'd simply do:

numDays = days360(startDate,endDate)
for ( i=1; i <= numdays; i++ )
{
      insert into ... blah, blah ...
}

But Zoho doesn't allow you to loop with a counter.  Their For Each only allows you to iterate through forms and lists that already exist.  How do I do this kind of loop when the records do not yet exist.  I have seen many of the suggested workaround, but don't see one that fits this situation.