fn remaining_cap(cap: Option<f64>, spent: f64) -> Option<f64>
What a callee may spend: what its caller has left of its cap, none when there is no cap.