Find the end of the peaks, with some restrictions on the search
get_peak_end(data, max_lookahead)
data
df with peak info
max_lookahead
max distance from apex to search for end