Until what age male have wet dreams?

Very variable. In most cases wet dreams cease when boys or men either masturbate or have sex on a regular basis. They continue indefinitely into middle age or later in absence of conscious ejaculation by either method. Some men continue, in spit of above from anger active Cowper's gland or spontaneous discharge of ejaculatory duct. Latter can result from erotic dreams or thoughts.