Example: Purchase a Personal Plan To Enable the Edge Function, Resulting In 10 Million Edge Function Requests and 10 Million Milliseconds Of CPU Time.
Assuming a user purchased and enabled the personal plan on March 3rd, there were 2 million edge function requests and 2 million milliseconds of CPU time between March 3rd 19:00:00 - 20:00:00, and 2 million edge function requests and 2 million milliseconds of CPU time between March 3rd 20:00:00 - 21:00:00.
The limits for the personal plan edge function are 3 million requests and 3 million milliseconds of CPU time, so the billing settlement for these two hours is as follows:
After offsetting the usage generated from March 3rd 19:00:00 - 20:00:00, there are still 1 million remaining request limit and 1 million milliseconds of CPU time limit. The excess fee for this hour: 0.
From March 3rd 20:00:00 - 21:00:00, the remaining credit was insufficient to offset the generated usage. The excess fee for this hour: (2 million - 1 million) * 0.2389 USD/million + (2 million milliseconds - 1 million milliseconds) * 0.0155 USD/million milliseconds = 0.2389 + 0.0155 = 0.2544 USD.