const toSeconds = str => str
.reduce((acc, n, i) => acc + n * (60 ** i), 0);Jude Wilkerson
((number_of_days * 24 + number_hours) * 60 + number_minutes) * 60 + number_seconds
As I understand it, they stopped studying mathematics at school ...Anonymous
To place the code, please use CodePen or similar tool. Thanks you!