While I'm not sure this is very good database design, you could accomplish this very easily by
CREATE TRIGGER TRG_TOTAL_COST BEFORE INSERT ON INVOICE FOR EACH ROW
SET NEW.TOTAL_COST = NEW.UNITS * NEW.PRICE
but I do not understand why you would want to do this in a trigger? You have all the data you need at insertion time, so you could just do the product right in the insert.
Or unless you have a good reason for actually wanting to store it, why not just leave out the potentially redundant column and calculate the product in your selects?