fn get_delta(
    rules: &HashMap<String, HashMap<String, i64>>,
    left: &str,
    right: &str
) -> i64