On first glance, it looks like $arrival = $_POST['arrival-field'];
is different than what’s being sent in the data object (arrival_field: arrival_field
). One has a hyphen, while the other has an underscore.
Can you verify that the ACF data is being successfully sent along to the function? By printing or console logging?