span><span class="va">x</span><span class="op">)</span> <span class="fu"><a href="https://rdrr.io/r/base/Extremes.html" class="external-link">max</a></span><span class="op">(</span><span class="fu"><a href="https://rdrr.io/r/base/which.html" class="external-link">which</a></span><span class="op">(</span><span class="va">fit.detail</span><span class="op">$</span><span class="va">time</span> <span class="op">&lt;=</span> <span class="va">x</span><span class="op">)</span><span class="op">)</span><span class="o