Set an iPhone passcode I forgot, but still can access phone, what to do?

I mistakenly set a passcode on my phone that I can't recall. The bright side is that I had not locked my phone and am still able to use my phone, but I know once I press the lock button, I will be unable to guess the correct passcode (as I have tried to "change passcode" and failed to do so a few times already). My technical support warranty time period has expired, so I seek any help anyone can offer me. I would like to have the passcode removed somehow. Any help is appreciated, thanks

Ull have to restore your phn back it up to icloude then put the phn in dfu mode and restore via itunes