formula for ship maintenance costs