Create a function that takes damage and speed (attacks per second) and returns the amount of damage after a given time.
calculate_damage(40, 5, "second") ➞ 200
calculate_damage(100, 1, "minute") ➞ 6000
calculate_damage(2, 100, "hour") ➞ 720000
- Return
"invalid"
if damage or speed is negative.