Hello Nashaf,
In this case your standard routing time should be 5 mins only and for the 20% retested products your actual time booking will be more than planned and will be shown rightly as the variance in cost analysis.
I believe then your business should reconsider why they have so much variance and try to improvise the business process so that product is first time right.
Best Regards,
Ameya B.