I'm not really sure if this should go here or off-topic, but I think it should be here

I was wondering if there's a way I could deposit bitcoins to a wallet, address, and I wouldn't be able to withdraw them until I reach a certain sum
I'd like to start a fund to save money for a car, however, I always end up spending my money instead of saving it

Is there a way to set something up, where I could be able to withdraw the coins only when the balance of the wallet reaches 10
BTC or something like that?
For example, generating a password that would be given to me once the balance hits 10 or something like that
