Cost Calculation
Storage cost calculation is an automatic process in WMA. There are two main parts: component storage and machine storage.
flowchart LR
i["Import Date"]
b["Build Date"]
d["Deliver Date"]
i <-->|component storage| b <--> |machine storage| d
i <-->|pre-built machine storage| d
The total storage cost will be displayed only after the machine got built. You can check the number by checking the machine log details.
Component Storage
When components arrive at the warehouse, the system starts tracking their storage duration.
The formula is:
Formula: total component storage cost = daily rate × duration × quantity
where:
- Daily rate : the price from storage code
- Duration : from the date component comes to the warehouse until it got built into a machine
- Quantity : the quantity of components that are used to build a machine
Note
If the duration is less than 1 day, it will count as 1 day.
Here is an example:
A machine was built with the following components:
- 1 x Main component A : £1.5 per day
- 2 x Component B: £0.5 per day
- 1 x Component C: £0.1 per day
If all components are stored for 3 days before being used to build a machine, the total component storage cost will be (£1.5 x 1 + £0.5 x 2 + £0.1 x 1) x 3 = £7.8.
Component storage calculation stops when components get used to build a machine. From there, machine storage takes over.
Machine Storage
The calculation for machine storage is more complex than component storage, since it tracks duration across multiple deliver records and return records.
Formula: total machine storage cost = daily rate from main component × (duration after build + duration between delivered and return (might be multiple records))
where:
- Daily rate : the price from the storage code of the main component
- Storage Duration : equals to the add-up of the following
- After Build : how many days the machine is stored from build to delivery
- Between delivery and return : how many days in total between the return date and the next delivery date
Here is a simple example:
A machine was built with the following components:
- 1 x Main component A : £1.5 per day
- 2 x Component B: £0.5 per day
- 1 x Component C: £0.1 per day
When the system calculates machine storage cost for this machine, it will only use the main component's storage code. If this machine is stored for 5 days after build, the machine storage cost will be £1.5 × 5 = £7.5.