diff --git a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml
index 8f3fc7e45..cda2dce05 100644
--- a/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml
+++ b/modules/monitoring/application/views/scripts/partials/downtime/downtime-header.phtml
@@ -47,7 +47,7 @@
)) ?>
is_in_effect && $downtime->start >= time()): ?>
- = sprintf($this->translate('expires %s'), $this->timeUntil($downtime->end, false, true)) ?>
+ = sprintf($this->translate('expires %s'), $this->timeUntil($downtime->is_flexible ? $downtime->scheduled_end : $downtime->end, false, true)) ?>