Auto copy x times a row or range when ‘recurrence’ cell = “Yes” and x is calculated within the sheet

I have a village hall booking system in Google Sheets, operating from google forms. I have a single row for each booking. When an enquiry says ‘yes’ to recurrence, I want to duplicate some details in the sheet to create further booking rows. I have a cell which calculates the number of bookings based on the dates/frequency.