Using values from generated columns

I have a table with two generated columns and values of the 2nd generated column must be calculated using values of the first one. How can I get value of the 1st column in the 2nd column generator?

You cannot get a value from a column.
Consider adding transient attributes to the entity displayed in the table, then your task will be trivial.