Update formula with dependencies