truncate_to_delay function

Truncate reporting triangle to a specific maximum delay