fn check_capacity_margin(value: f64) -> Result<()>
Check that the capacity_margin parameter is valid
capacity_margin