fn calculate_next_timeout(received_at: u64, max_time_in_pool: u64) -> u64
Calculates the amount of time to wait before resending a tx to the network.