Put your function first:
def calcHullSpeed(LWL):
maxHS = 1.34*math.sqrt(LWL)
return maxHS
LWL = float(input("Enter the length of the boat: "))
maxHullSpeed = calcHullSpeed(LWL)
print("The hull speed is: " + str(round(maxHullSpeed,2)))
Functions have to be defined before you call them.