Hi @Jackson_Hew ,
Each line of the pseudocode may be correspond to at least 1 UiPath activity. Give a try to build the workflow using the pseudo code.
Say for Set End Date/ Set Start Date, you can use the “Assign Activity”
Download Report may be a set of activities which contain “Type Into” to key in the End and Start dates, then “Click” activity to download the Report.
While = “While Activity”
and so on.
Perhaps another challenge for you here is getting the difference of dates. For that, you can check this thread as a start:
How to find difference between two date - Help / Studio - UiPath Community Forum