df |> dplyr::mutate(profit = Amount * Price - Losses)
[1] https://dplyr.tidyverse.org/
[2] https://tidierorg.github.io/TidierData.jl/latest/