There's no true answer. It's the same as how long is a piece of string.
It depends on the child as each child/person is different.
I used to wet the bed myself and it lasted until I was 15 or 16. "I'm 29 now"
Some people never grow out of it. But I'm sure your child will. Just give it time.