Action to Calculate Compound Interest#83
Action to Calculate Compound Interest#83Danmax wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
|
✅ Valid PR for ActionPack Thank you for your contribution. This PR complies with the CONTRIBUTING.md. |
Danmax
left a comment
There was a problem hiding this comment.
Transportation Rate – Action Summary
Purpose:
Compute weekly transportation cost with distance pricing and sibling discount; also returns per-rider average.
Inputs:
distance (Number, ≥0): miles home → school
siblings (Number, ≥0): additional riders (excludes first)
Outputs:
weeklyRate (String): first rider cost
totalCost (String): all riders combined
totalRiders (Number): 1 + siblings
averageWeeklyRate (String): totalCost / totalRiders
distance, siblings (echoed), error (optional)
Rules:
Base: $65/week for up to 3 miles
+$5 per mile beyond 3
Each additional rider gets 10% off the weekly rate (first pays full)
ravichandra1998g
left a comment
There was a problem hiding this comment.
Thanks for your submission. It appears that this pull request contains more files than described in the title. Please review and update the pull request to either remove the extra/unintended files or to update the description to be more comprehensive. Ensure your contributions are meaningful and adhere to the project’s standards. [If applicable: You can create a new branch on your forked repository to avoid accidental inclusions of new commits in the future.]. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.
|
@ravichandra1998g I accidentally updated another Action on this same pull request instead of creating a new branch. How can I separate these now? |
|
Hello @Danmax You can create a new branch and capture only the action that is needed. If another action is getting captured by mistake, you can take backup and remove that action completely from the instance and capture it. |
Action to Calculate Compound Interest
Description:
Calculates the final amount and total interest earned using the compound interest formula
Inputs:
principal (Number) – Starting amount (e.g., 1000)
annualRate (Number) – Annual interest rate in % (e.g., 5)
timesCompounded (Number) – Times interest compounds per year (e.g., 4)
years (Number) – Duration in years
Outputs:
principal – Original amount (2 decimals)
amount – Final amount with interest
interest – Total interest earned
error (optional) – Message if inputs are invalid