Text this: Mathematical model of flood insurance: an optimization approach