Purchasing management with automatic calculation