docs: function calculateTimeoutMs(timeoutAtPercentageOfRemainingTime, context) {
    const remainingTimeInMillis = context.awsContext.getRemainingTimeInMillis();
    return Math.round(remainingTimeInMillis * timeoutAtPercentageOfRemainingTime);
  }