I have some problem with my "holiday proposal" workflow in SharePoint Online (Office 365 - SharePoint 2010).
I have created field (integer) "Free days" in user profiles.
The main things is to reduce this "Free days" value after someone will create "holiday proposal" and when it will be accepted. "Free days" value will be reduced by the value of amount of days from the "holiday proposal".
This should check if the "holiday proposal" is greater than the number of of "Free days" and send email for this person. Or send email when the number of "Free days" will rise a 6 days left.
How would I do this using a Workflow?