Looks okay, assuming:
- warranty_period is a field of type Number, and
- purchesed_date is a field of type Date/Time, and
- both fields are available (once only) in the RecordSource of your form or
report, and
- the expression is in the Control Source of a text box.
If this is a report, you could try putting warranty_period and
purchesed_date onto the report as well (setting their Visible property to
No).
If it's still broken, press Ctrl+G to open the Immediate Window.
Then choose References from the Tools menu, and see if anything is marked
"MISSING".