calculate vendor amount