From the AWS Lambda pricing page:
Duration is calculated from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms
From the AWS Lambda pricing page:
So it would really be closed to $1 million per month.