fixed length calculation