But the cost and time are determined according to the port distance, and which port to use depends on the location of your consignor and consignee. There is no reason why your factory is in Qingdao, just like you deliberately transported it to Guangdong port for export by rail. You need to see which port your factory is close to, such as Shantou, Foshan, Huangpu in Guangzhou and Yantian in Shenzhen. As for the port in Chile, it depends on where your consignee's receiving point is determined.
Let me give you an example, from Yantian Port in Shenzhen to Iquique Port in Chile.
Yantian in Shenzhen
Balboa port terminal, transfer to Balboa, Panama.
Iquique International Airport. CL port in Iquique, Chile
The voyage is 39 days.
I hope this answer can help you.