This article describes how IoT Platform charges you based on device connection durations and the number of messages.

## Example 1

Assume that 10,000 devices are online twice a day. The devices remain online for 2 hours at the first time and 6 hours at the second time. The devices are online for a total of 8 hours a day. During the online period, each device sends a message of up to 0.5 KB per minute. The current month has 30 days.

Your fees in the month are calculated based on the following billable items:

• Messaging fee

Number of messages: 60 × 8 × 30 × 10,000 = 144,000,000

Messaging fee: 100 × 0.5 + 44 × 0.4 = USD 67.6. Note: For the first 100 million messages, you are charged USD 0.5 per million messages. For the next 44 million messages, you are charged 0.4 dollars per million messages.

• Device connection fee

Device connection duration: 60 × 8 × 30 × 10,000 = 144,000,000 minutes

Device connection fee: 144 × 0.3 = USD 43.2. Note: You are charged USD 0.3 per million minutes.

• Total monthly fee: 67.1 + 43.2 = USD 110.8

## Example 2

Assume that 10,000 devices are online twice a day. The devices remain online for 2 hours at the first time and 6 hours at the second time. The devices are online for a total of 8 hours a day. During the online period, each device sends a message of up to 0.5 KB per minute. Each device receives a message of 0.4 KB per minute. The current month has 30 days.

Your fees in the month are calculated based on the following billable items:

• Messaging fee

Number of messages sent in the month: 60 × 8 × 30 × 10,000 = 144,000,000

Number of messages received in the month: 60 × 8 × 30 × 10,000 = 144,000,000

Total number of messages: 144,000,000 + 144,000,000 = 288,000,000

Messaging fee: 100 × 0.5 + 188 × 0.4 = USD 125.2. Note: For the first 100 million messages, you are charged USD 0.5 per million messages. For the next 188 million messages, you are charged 0.4 dollars per million messages.

• Device connection fee

Device connection duration: 60 × 8 × 30 × 10,000 = 144,000,000 minutes

Device connection fee: 144 × 0.3 = USD 43.2. Note: You are charged USD 0.3 per million minutes.

• Total monthly fee: 125.2 + 43.2 = USD 168.4

## Example 3

Assume that 10,000 devices are online twice a day. The devices remain online for 2 hours at the first time and 6 hours at the second time. The devices are online for a total of 8 hours a day. During the online period, each device sends a message of 0.6 KB per minute. Each device receives a message of 0.4 KB per minute. The current month has 30 days.

Your fees in the month are calculated based on the following billable items:

• Messaging fee

Number of messages sent in the month: 60 × 8 × 30 × 10,000 × 2 = 288,000,000

Note Each message that is sent has a size of 0.6 KB, which is greater than 512 bytes. Therefore, IoT Platform calculates each message as two messages. For more information about IoT Platform calculates messages, see Billing methods.

Number of messages received in the month: 60 × 8 × 30 × 10,000 = 144,000,000

Total number of messages: 288,000,000 + 144,000,000 = 432,000,000

Messaging fee: 100 × 0.5 + 332 × 0.4 = USD 182.8. Note: For the first 100 million messages, you are charged USD 0.5 per million messages. For the next 332 million messages, you are charged 0.4 dollars per million messages.

• Device connection fee

Device connection duration: 60 × 8 × 30 × 10,000 = 144,000,000 minutes

Device connection fee: 144 × 0.3 = USD 43.2. Note: You are charged USD 0.3 per million minutes.

• Total monthly fee: 182.3 + 43.2 = USD 226