Menu
easyTelekom Malaysia · date-time

Days remaining until subscription expiry

Using 2026-08-01 as "today", compute how many days remain until each subscription expires. A subscription that already expired should show a negative number.

Return customer, expiry_date, and days_remaining.

Schema

subscriptions
idINT
customerTEXT
expiry_dateDATE

Example input

subscriptions
↑ Read the question

The interviewer's next question

Turn days_remaining into a status label: 'Expired' if negative, 'Expiring today' if exactly zero, 'Active' otherwise. Return customer, days_remaining, status.

Solving follow-ups — the questions an interviewer actually asks next — unlocks with a Basic plan.

See Basic plans

RM 25/mo · cancel anytime

Telekom wants a renewal-reminder flag instead: 'Expired' for anything already past due, 'Renew soon' for anything expiring within the next 7 days (today included), and 'OK' for everything further out.

Solving follow-ups — the questions an interviewer actually asks next — unlocks with a Basic plan.

See Basic plans

RM 25/mo · cancel anytime

Keep going

Company names are trademarks of their respective owners, used here only to describe practice material. mahir_data is not affiliated with, endorsed by, or sponsored by any company named on this site. Terms.