Hello! First of all, I'm sorry if this isn't actually Calculus. I'm not the best at higher-level math, so please forgive me if I've put this in the wrong category.
I have a rough idea of what I want. Here's my problem:
The player character ingests a certain substance (we'll pretend it's caffeine to keep it G-rated) which kicks in after 30 minutes. Assume it takes 20 caffeine points (Caff) to feel any effects. 1 cup of coffee is equal to 100 Caff. If the player ingests 1 cup, I want there to be 20 Caff in their system at the 30-minute mark, but if they ingest 10 cups, I don't want there to be 20 Caff in their system at the 3-minute mark, if that makes sense. I don't want them to get 20 Caff before the 30-minute mark, regardless of how much they ingest. Also, I don't want them to get more than 40 Caff within the first hour. The remaining Caff should be released in their system at an increasing rate up to the 240-minute mark (4 hours). After that, the amount in their system should begin to taper off, reaching 0 any time between the 480-2880-minute mark (8-48 hours). The time it reaches 0 depends on how much is in their system at the 240-minute mark. If they have 100 Caff in their system, they should be at 0 at the 480 mark. Assume that the maximum they can have in their system is 10,000 Caff, which should reach 0 at the 2880-minute mark.
I have a rough idea of what I want. Here's my problem:
The player character ingests a certain substance (we'll pretend it's caffeine to keep it G-rated) which kicks in after 30 minutes. Assume it takes 20 caffeine points (Caff) to feel any effects. 1 cup of coffee is equal to 100 Caff. If the player ingests 1 cup, I want there to be 20 Caff in their system at the 30-minute mark, but if they ingest 10 cups, I don't want there to be 20 Caff in their system at the 3-minute mark, if that makes sense. I don't want them to get 20 Caff before the 30-minute mark, regardless of how much they ingest. Also, I don't want them to get more than 40 Caff within the first hour. The remaining Caff should be released in their system at an increasing rate up to the 240-minute mark (4 hours). After that, the amount in their system should begin to taper off, reaching 0 any time between the 480-2880-minute mark (8-48 hours). The time it reaches 0 depends on how much is in their system at the 240-minute mark. If they have 100 Caff in their system, they should be at 0 at the 480 mark. Assume that the maximum they can have in their system is 10,000 Caff, which should reach 0 at the 2880-minute mark.