c
if (ticks_from_now < 0) {
    abs_time = ble_npl_time_get(); // Ignore negative values
} else {
    abs_time = ble_npl_time_get() + (uint32_t)ticks_from_now;
}
