You need to implement a function that calculates the minimum number of seconds required to transform a given list of integers into a non-decreasing order. The transformation can be done by incrementally increasing elements of the array, and your function should determine the time taken to make necessary increments.
Requirements
Function Signature
Implement the function as follows: