@Override
    //A discount of 5% will be given to customers older than 2 years
    public double getDiscount(){

        Calendar calendar = Calendar.getInstance();
        calendar.add(Calendar.YEAR, -2);
        calendar.add(Calendar.DATE, 1);
        Date date = calendar.getTime();
        if(startDate.before(date))
            return 5.0;
        else
            return 0.0;
    }