New function za_calc to handle both za and za_inc, accepting either single-value or array inputs in any argument (automatic detection).