TimerLogic calculateTimeNeeded function implemented

Again, nothing tested yet