Salutations mirian_,
Typically it’s 10 attempts before you device becomes disabled. However, you don’t have to wait through all of them to go ahead and erase your device to remove the passcode. The following articles go over how to do that. You will need a computer, unless you were running iOS 15.2 or later and your device is connected to a cellular or Wi-Fi network.
If you forgot your iPhone passcode
How to remove your iPhone, iPad, or iPod touch passcode without a computer
How to reset your device
If you're using an eSIM, contact your carrier before trying these steps and ask for a QR code to set up your eSIM again.
1. From your device's Lock Screen, try entering your passcode until the "[Device] Unavailable" screen appears and your device asks you to try again later. When you're able to, continue trying to enter your passcode until the "Security Lockout" screen appears and you get the Erase [Device] option in the bottom corner of the screen.
2. Tap Erase [Device], then tap Erase [Device] again to confirm.
3. Enter your Apple ID password to sign out of your Apple ID on your device.
4. Tap Erase [Device] to permanently delete all of your data and settings.
5. When your device restarts, follow the onscreen instructions to set up your device again, restore your data and settings from a backup, and set a new passcode.
6. You can only reach the "Security Lockout" screen if you previously enabled Find My on your device. If you can't follow these steps, you can use a computer to reset your device.
Thanks.