I have a math problem
I want to build tiled world wich has maps and those maps have tiles. I have hard time calculating the tile window positions from the world height, width and map x,y and map height, width and tile x,y and tile height, width.
I have tried quite few things to calculate tile x to window coordinates.
I know that I can calculate one map by doing
xposition = tileX * tileWidth – tileWidth;
yposition = tileX * tileWidth – tileWidth;
I can not get it right when calculating with world. Any help?

yposition = (mapY * mapHeight) + tileY