Homework#3 Submission

You're duplicating a lot of effort here and perhaps overthinking it a bit which likely lead to your failed test. As a brief aside, complexity is the bane of many an otherwise good program. Each extra character on each line is another place for something to go wrong and, overall, dillutes one's ability to read and see where a problem might lie. For example, here, you  repeated your decimal transformation and total calculation multiple times. You could instead, do it once, at the end of all your if blocks after discovering the rate. That way if a typo entered into the calculation you only have one spot you have to debug.

What I'm looking for is simply a deeply nested 'if' to set the rate just like you did in Task 3. Task 3 was a warm-up and this is just an expanded application with math instead of color choices. It should be three levels deep for principal, duration, and prequalification status. Make sure to gate your lower bounds so a negative principal can't try to sneak in on the < 200000 rate. You'll also want to leave Total as `None` when an invalid combination is presented such as a negative principal.