| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcChangeoverDurationRatio | 
| { | 
|   TextBody: | 
|   [* | 
|     // kok hui Dec-27-2016 (created) | 
|     value := Duration::Zero(); | 
|      | 
|     if( not isnull( this.Period_MP() ) | 
|         and this.TotalCapacity() > Duration::Zero() ) | 
|     { | 
|       value := this.ChangeoverDuration() / this.TotalCapacity() * this.Period_MP().Duration(); | 
|     }     | 
|      | 
|     this.ChangeoverDurationRatio( value ); | 
|   *] | 
| } |