After members save 60 item on the database, I need monthly plan or subscription automatically canceled even if the month aren't ending

Hi sir, I do not understand this part below, how I can do that Thank you:
Then inside that .then((results)) you need to get the users plans and cancel the first plan they have.