Open user sudoers file:
visudo -f /etc/sudoers.d/dmitritelinov
And add to the end:
Defaults:dmitritelinov timestamp_timeout=240
where dmitritelinov is username and 240 is time in minutes = 4 hours.Defaults timestamp_type=global,timestamp_timeout=240
But note that /etc/sudoers may be overwritten on the upgrade.