To change the password expiry length, go to the Divi Password Box settings at:
WP Dashboard > Settings > Divi Password Box
You should then see an option to set the password expiry like so:
This option is available in Divi Password Box v1.1.3 upwards.
Note that this is a site-wide setting which modifies the password expiry on all password protected pages.