Write the equation that helps in deriving the net primary productivity of an ecosystem

NPP = GPP - R
NPP : Net Primary Productivity.
GPP : Gross Primary Productivity.
R = Respiration losses.