new subroutine
calculate ships characteristics