Discounts to be applied at the time of Vendor Payment

Discounts to be applied at the time of Vendor Payment

Hi, 

When recording a payment to vendor, I need to apply additional discounts for making payments in certain days, can you please advise how to do that? 

For Example: 
Bill due is $10,000.00
- (Minus) Discount for Promo applied at the time of placing purchase order 4%
- (Minus) Making Payments within 10 days (take additional 2%) 
= Payment to be made $9,400.00

Please help and advise...