3 methods to calculate inventory