Progress Bar blueprint function issue

Hi, I’m looking for some help with my blueprint coding. I have two progress bar which has very simple function to it, basically if I subtract 10 from the Blue Bar then 10 will be added to the Green Bar. Green bar can have max value of 50, and for Blue Bar Max Value is 80. So when the Green bar is 50 (max) Blue bar Should have 30, and the function can not be call anymore, But my current blueprint function is getting stop when the Blue bar value 40 and on other hand Green Bar having 50. Hope I’m able to make understand what is the problem. Any help would be appreciated.

Thank you ClockworkOcean . Your blueprint solved my problem.

Don’t forget to mark his answer as solved so others with the same problem can find this solution