Optimal Spending on Cybersecurity Measures (Digital Privacy and Data Protection)