Hearing loss algorithm