I have written a simple trigger that calls a calculateMarketPriceCars function (it has four int arguments):
calculateMarketPriceCars
CREATE TRIGGER calculateMarketPrTrigg