The principle of indemnity in insurance is designed to: