Added function to calculate the remaining warranty
Trying to calculate warranty remaining period