What are the benefits of masturbating and not masturbating?

I have not masturbated since 20 days. Is it fine not to masturbate or is it necessary?