Getting next retry of activity by code

At web-ui we can see next retry value for activity:

Is there any opportunity to get this value by code? Thanks

okey, i got it. It’s scheduled time for activity

You can get this value via tctl / cli, for example:

tctl wf desc -w <wfid>

and in result check pendingActivities->scheduledTime

Also via SDK apis using DescribeWorkflowExecution