Adjusted cost logic to account for fifo behavior in portfolios